package com.hzf.common.util;

/**
 * 响应码定义类
 * @author Running Snail
 * @version V1.0
 * @Date 2017/7/420:45
 * @Description 描述
 */
public enum ResponseCode {

    SYSTEM_ERROR(-1, "系统异常"),
    SUCCESS(0, "操作成功"),

    CODE_TIMEOUT(400100, "验证码失效"),
    NOT_LOGIN(400400, "未登录，无权操作"),

    PARAM_ERROR(500100, "参数校验失败"),
    NOT_EXIST(500200, "记录不存在"),

    FIRST_LOGIN(600100, "该用户首次登陆，需要绑定手机号"),

    THIRD_ACCOUNT_REPEAT(600200, "第三方账户已被其他账号绑定"),
    SENDER_VERIFY_REPEAT(600201, "骑手信息审核中，请耐心等待审核结果"),

    POST_ADDRESS_ONLY_ONE(600300, "收货地址只有一个，不能删除"),

    PAY_REFUND_WAIT(600900, "退款申请已提交，请等待工作人员退款"),
    PAY_REFUND_FAILED(600901, "退款申请执行失败"),
    PAY_REFUND_REPEAT(600902, "该订单的款项已经退还，不可重复退款"),
    ;

    private int code;
    private String msg;

    ResponseCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
